package com.yunshang.shoppingmall.service.impl;

import com.yunshang.shoppingmall.entity.UserNo;
import com.yunshang.shoppingmall.entity.UserNoOrder;
import com.yunshang.shoppingmall.mapper.UserNoOrderMapper;
import com.yunshang.shoppingmall.service.UserNoOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service("userNoOrderService")
public class UserNoOrderServiceImpl implements UserNoOrderService {

    @Autowired
    UserNoOrderMapper userNoOrderMapper;

    @Override
    public int insert(UserNoOrder record) {
        return userNoOrderMapper.insert(record);
    }

    @Override
    public int insertSelective(UserNoOrder record) {
        return userNoOrderMapper.insertSelective(record);
    }

    @Override
    public List<UserNoOrder> selectUserNoOrderByReCommend(int userNoId) {
        return userNoOrderMapper.selectUserNoOrderByReCommend(userNoId);
    }
}
